package com.voyage.voyagemall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.voyage.voyagemall.common.utils.PageUtils;
import com.voyage.voyagemall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author kangbinqiang
 * @email 18822253832@163.com
 * @date 2020-11-08 15:05:43
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void batchRemoveByIds(List<Long> catIds);

    /**
     * [/父/子/孙]
     * @param catelogId
     * @return
     */
    Long[] findCatelogPath(Long catelogId);
}

